import allure

from api.auth import AuthAPI


class TestTextCheck:

    # 前置处理
    def setup_method(self):
        self.auth_api = AuthAPI()

    @allure.title("文本审核接口")
    def test01_error(self):
        data = {
            "text": "我懵逼了",
            "serviceCode": "agent"
        }
        res = self.auth_api.textCheck(data=data)
        assert 200 == res.status_code
